<html>
<head><meta charset="utf-8"><title>Merge Enum Variant Expr into Struct Expr page? · t-lang/doc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/index.html">t-lang/doc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/Merge.20Enum.20Variant.20Expr.20into.20Struct.20Expr.20page.3F.html">Merge Enum Variant Expr into Struct Expr page?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226258844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/Merge%20Enum%20Variant%20Expr%20into%20Struct%20Expr%20page%3F/near/226258844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/Merge.20Enum.20Variant.20Expr.20into.20Struct.20Expr.20page.3F.html#226258844">(Feb 13 2021 at 18:09)</a>:</h4>
<p>AFAIK, the enum variant expression only differs from the struct expression in that you can't use <code>..</code> (sidenote: also true for unions?). Wouldn't it make more sense to have those then be the same expression, with a semantic restriction that <code>..</code> doesn't work for enums? Having an entirely second page for this feels off.</p>



<a name="226260054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/Merge%20Enum%20Variant%20Expr%20into%20Struct%20Expr%20page%3F/near/226260054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/Merge.20Enum.20Variant.20Expr.20into.20Struct.20Expr.20page.3F.html#226260054">(Feb 13 2021 at 18:35)</a>:</h4>
<p>Yes, that looks incorrect.  I'm not sure why it was done that way, but it should be changed.  Do you want to fix it? <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="226260375"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/Merge%20Enum%20Variant%20Expr%20into%20Struct%20Expr%20page%3F/near/226260375" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/Merge.20Enum.20Variant.20Expr.20into.20Struct.20Expr.20page.3F.html#226260375">(Feb 13 2021 at 18:43)</a>:</h4>
<p>Yeah, I can.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>